require.config({
    paths:{
        jquery:'./libs/jquery',
        underscore:'./libs/underscore',
        backbone:'./libs/backbone',
        text:'./libs/text',
        template:'./libs/template-web',
        card:'./models/card',
        cards:'./models/cards',
        indexHtml:'./tpl/index.html',
        addHtml:'./tpl/add.html',
        showHtml:'./tpl/show.html',
        indexView:'./views/index',
        addView:'./views/add',
        showView:'./views/show',
        indexController:'./controllers/indexController',
        addController:'./controllers/addController',
        showController:'./controllers/showController',
        editController:'./controllers/editController',
        router:'./router'
    },
    shim:{
        jquery:{
            exports:'$'
        },
        underscore:{
            exports:'_'
        },
        backbone:{
            deps:['jquery','underscore'],
            exports:'B'
        }
    }
})
require(['backbone','router'],function(B,router){
    B.history.start();
})